package com.redepronik.negosysfab.invfac.report;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.redepronik.negosys.invfac.entity.Guiaremision;
import com.redepronik.negosys.utils.service.ReporteService;

@Controller
@Scope("session")
public class GuiaRemisionReport {

	@Autowired
	private ReporteService reporteService;

	public GuiaRemisionReport() {
	}

	public void reporteGiaRemision(Guiaremision guiaRemision) {
		List<Guiaremision> list = new ArrayList<Guiaremision>();
		list.add(guiaRemision);
		Map<String, Object> parametro = new HashMap<String, Object>();
		reporteService.generarReportePDF(list, parametro, "GuiaRemision");
	}
}